-- Solution VoiceChat
solution "VoiceChat"
	configurations { "Release", "Debug" }

-- Project libVC
	project "libVC"
		kind "StaticLib"
		language "C++"
		files { "src/*.h", "src/*.cpp", "include/*.h" }
		excludes { "src/VCModWaveOutFile.*" }
		objdir "obj"
		targetdir "lib"
		targetname "VC"
		targetprefix "lib"
	 
		configuration "Debug"
			defines { "_DEBUG" }
			flags { "Symbols" }
	 
		configuration "Release"
			flags { "Optimize" }
	
		configuration "windows"
			excludes { "src/VCModOpenAL*" }
			includedirs { "ext/speex-1.2rc1/include" }
	
		configuration "linux"
			excludes { "src/VCModWave*" }
			
		configuration "macosx"
			platforms { "Universal" }
			excludes { "src/VCModWave*" }
			links { "OpenAL.framework" }

-- Project example_client
	project "example_client"
		kind "ConsoleApp"
		language "C++"
		files { "examples/example_client.cpp" }
		objdir "obj"
		targetdir "examples"
		includedirs { "include" }
		libdirs { "lib" }
		
		configuration "Debug"
			defines { "_DEBUG" }
			flags { "Symbols" }
	 
		configuration "Release"
			flags { "Optimize" }
	
		configuration "windows"
			libdirs { "ext/speex-1.2rc1/lib" }
			links { "libVC", "libspeex", "libspeexdsp" }
	
		configuration "linux"
			links { "VC", "speex", "speexdsp", "pthread", "openal" }
			
		configuration "macosx"
			platforms { "Universal" }
			links { "VC", "speex", "speexdsp", "pthread", "OpenAL.framework" }

-- Project example_server
	project "example_server"
		kind "ConsoleApp"
		language "C++"
		files { "examples/example_server.cpp" }
		objdir "obj"
		targetdir "examples"
		includedirs { "include" }
		libdirs { "lib" }
	
		configuration "Debug"
			defines { "_DEBUG" }
			flags { "Symbols" }
	 
		configuration "Release"
			flags { "Optimize" }
	
		configuration "windows"
			libdirs { "ext/speex-1.2rc1/lib" }
			links { "libVC", "libspeex", "libspeexdsp" }
		
		configuration "linux"
			links { "VC", "speex", "speexdsp", "pthread", "openal" }
			
		configuration "macosx"
			platforms { "Universal" }
			links { "VC", "speex", "speexdsp", "pthread", "OpenAL.framework" }
